﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Tasker.Infrastructure.Repositories.Base
{
    /// <summary>
    /// Менеджер контекста репозиториев
    /// </summary>
    public interface IContextManager
    {
        /// <summary>
        /// Turns context to Unit of work mode.
        /// </summary>
        void Begin();

        /// <summary>
        /// This method is called after each database operation is completed.
        /// </summary>
        void Save();

        /// <summary>
        /// Commits unit of work changes that were made.
        /// </summary>
        void Commit();
    }
}
